<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">

<ui:composition template="../templates/maintemplate.xhtml">

	<ui:define name="right">
			<div class="titleform"><h:outputText value="#{msg.newAccount}" /></div>
		    <h:form class="form">
		    	<h:panelGrid id="panel" columns="2">
		    	<h:outputLabel value="#{msg.login}" for="user_name"/> <h:inputText label="#{msg.login}" id="user_name" value="#{addUserBean.user_name}" size="30" required="true" />
		    	<h:outputLabel value="#{msg.password}" for="password" /> <h:inputSecret label="#{msg.password}" id="password" value="#{addUserBean.password}" size="30" required="true" />
		    	<h:outputLabel value="#{msg.firstname}" for="first_name"/> <h:inputText label="#{msg.firstname}" id="first_name" value="#{addUserBean.first_name}" size="30" required="true" />
		    	<h:outputLabel value="#{msg.lastname}" for="last_name"/> <h:inputText label="#{msg.lastname}" id="last_name" value="#{addUserBean.last_name}" size="30" required="true" />
		    	<h:outputLabel value="#{msg.email}" for="email" /> <h:inputText label="#{msg.email}" id="email" value="#{addUserBean.email}" size="30" required="true" />
		    	<h:commandButton action="#{addUserAction.check()}" value="#{msg.create}" />
		    	</h:panelGrid>	    	
		    </h:form>
		    <h:message for="user_name"/><br/>
		    <h:message for="password"/><br/>
		    <h:message for="first_name"/><br/>
		    <h:message for="last_name"/><br/>
		    <h:message for="email"/><br/>
	</ui:define>
	<ui:define name="text">
		opsisi
	</ui:define>

</ui:composition>
</html>